package com.bjpowernode.rbac.mapper;

import com.bjpowernode.rbac.entity.CustomerTraceHistory;
import com.bjpowernode.rbac.entity.SystemDictionaryItem;
import com.bjpowernode.rbac.query.HistoryQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerTraceHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CustomerTraceHistory record);

    int insertSelective(CustomerTraceHistory record);

    CustomerTraceHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustomerTraceHistory record);

    int updateByPrimaryKey(CustomerTraceHistory record);

    void updateByCustomerTraceByPrimaryKey(CustomerTraceHistory customerTraceHistory,@Param("customerId") Long customerId);

    List<SystemDictionaryItem> selectAllTraceType();

    List<CustomerTraceHistory> selectAllTraceResult();

    List<CustomerTraceHistory> selectAllType();

    List<CustomerTraceHistory> selectTraceHistoryByCondition(HistoryQuery historyQuery);
}